#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
    int i[] = { 5, 5, 6, 8, 10 };
    printf("%d", *lower_bound(i, i + 5, 7));
    
}